package com.xmhmyh.generalframework.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmhmyh.generalframework.common.entity.DataGridRequest;
import com.xmhmyh.generalframework.common.enums.ResponseCode;

/**
 * @Author: 于丁
 * @DateTime: 2020/7/24 9:11 上午
 */
public interface BaseIService<T> extends IService<T> {

    T getNotNullById(Long id);

    T getNotNullById(Long id, ResponseCode responseCode);

    IPage<T> paginate(DataGridRequest dataGridReq);
}
